﻿clothes_armor = { # All clothes triggers are found in 00_clothing_triggers.txt

    usage = game
    selection_behavior = weighted_random
    priority = 4


    ## DDE HRE ##

    dde_hre_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_hre_war_nobility_clothes
                accessory = m_clothes_sec_dde_hre_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60       # slightly stronger than western war
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = dde_hre
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = dde_hre
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = dde_hre
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = dde_hre
                    }
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                NOT = { portrait_era3_armor_trigger = yes } 
            }
        }
    }

    dde_hre_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_hre_war_nobility_clothes
                accessory = m_clothes_sec_dde_hre_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60       # slightly stronger than western war
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = dde_hre
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = dde_hre
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                NOT = { portrait_era3_armor_trigger = yes } 
            }
        }
    }

    ## Western ##

    western_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_war_nobility_clothes
                accessory = m_clothes_sec_western_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = western
                    }
                }
            }
            modifier = {
                factor = 0
                has_ep2_dlc_trigger = yes
            }
        }
    }

    western_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_war_nobility_clothes
                accessory = m_clothes_sec_western_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_high_nobles_armor_trigger = { 
                    CULTURE_INPUT = western
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = { 
                    CULTURE_INPUT = western
                }
            }
            modifier = {
                factor = 0
                has_ep2_dlc_trigger = yes
            }
        }
    }

    ep2_western_era1_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era1_war_nobility_clothes
                range = { 0 0.49 }
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_era1_armor_trigger = yes
				portrait_armor_generic_trigger = yes
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                }
            }
            modifier = {
                add = 21
                portrait_era1_armor_trigger = yes
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = western
                    }
                }
            }
        }
    }

    ep2_western_era1_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era1_war_nobility_clothes
                range = { 0.51 1.0 }
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = western
                }
                has_ep2_dlc_trigger = yes
                portrait_era1_armor_trigger = yes
            }
            modifier = {
                add = 21
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = western
                }
                has_ep2_dlc_trigger = yes
                portrait_era1_armor_trigger = yes
            }
        }
    }

    ep2_western_era2_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era2_war_nobility_clothes
                accessory = m_clothes_sec_ep2_western_era2_war_nob_01_lo
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_era2_armor_trigger = yes
				portrait_armor_generic_trigger = yes
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                }
            }
            modifier = {
                add = 21
                portrait_era2_armor_trigger = yes
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = western
                    }
                }
            }
        }
    }

    ep2_western_era2_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era2_war_nobility_clothes
                accessory = m_clothes_sec_ep2_western_era2_war_nob_01_hi
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = western
                }
                has_ep2_dlc_trigger = yes
                portrait_era2_armor_trigger = yes
            }
            modifier = {
                add = 21
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = western
                }
                has_ep2_dlc_trigger = yes
                portrait_era2_armor_trigger = yes
            }
        }
    }

    ep2_western_era3_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_war_nobility_clothes
                accessory = m_clothes_sec_western_war_nob_01_lo
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_era3_armor_trigger = yes
				portrait_armor_generic_trigger = yes
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                }
            }
            modifier = {
                add = 21
                portrait_era3_armor_trigger = yes
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = western
                    }
                }
            }
        }
    }

    ep2_western_era3_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_war_nobility_clothes
                accessory = m_clothes_sec_western_war_nob_01_hi
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = western
                }
                has_ep2_dlc_trigger = yes
                portrait_era3_armor_trigger = yes
            }
            modifier = {
                add = 21
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = western
                }
                has_ep2_dlc_trigger = yes
                portrait_era3_armor_trigger = yes
            }
        }
    }

    ep2_western_era4_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era4_war_nobility_clothes
                range = { 0 0.49 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_era4_armor_trigger = yes
				portrait_armor_generic_trigger = yes
                has_ep2_dlc_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = western
                    }
                }
            }
            modifier = {
                add = 21
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = western
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = western
                    }
                }
                has_ep2_dlc_trigger = yes
                portrait_era4_armor_trigger = yes
            }
        }
    }

    ep2_western_era4_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_western_era4_war_nobility_clothes
                range = { 0.51 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = western
                }
                has_ep2_dlc_trigger = yes
                portrait_era4_armor_trigger = yes
            }
            modifier = {
                add = 21
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = western
                }
                has_ep2_dlc_trigger = yes
                portrait_era4_armor_trigger = yes
            }
        }
    }

    western_crusades = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = western_crusades
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 110
                portrait_western_crusades_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_armored_priest_trigger = {
                    RELIGION = christianity_religion
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're in the early era
                has_ep2_dlc_trigger = yes   
                portrait_era1_trigger = yes
            }
        }
    }

    ## Byzantine ##

    byzantine_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_war_nobility_clothes
                accessory = m_clothes_sec_byzantine_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                }
            }
        }
    }

    byzantine_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_war_nobility_clothes
                accessory = m_clothes_sec_byzantine_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = byzantine
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = byzantine
                }
            }
        }
    }

    byzantine_war_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = byzantine_war_nobility_clothes
                accessory = m_clothes_sec_byzantine_war_nob_01_roy
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_royalty_armor_trigger = {
                    CULTURE_INPUT = byzantine
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_royalty_armor_in_army_trigger = {
                    CULTURE_INPUT = byzantine
                }
            }
        }
    }

    ep2_byzantine_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_byzantine_war_nobility_clothes
                accessory = m_clothes_sec_ep2_byzantine_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                }
                has_ep2_dlc_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                }
                has_ep2_dlc_trigger = yes
            }
        }
    }

    ep2_byzantine_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_byzantine_war_nobility_clothes
                accessory = m_clothes_sec_ep2_byzantine_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = byzantine
                }
                has_ep2_dlc_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = byzantine
                }
                has_ep2_dlc_trigger = yes
            }
        }
    }

    ep3_byzantine_era1_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era1_war_nobility_clothes
                accessory = m_clothes_sec_ep3_byzantine_era1_war_nob_01
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                }
                has_ep3_dlc_trigger = yes
                OR = {
                    portrait_era1_armor_trigger = yes
                    portrait_era2_armor_trigger = yes
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                }
                has_ep3_dlc_trigger = yes
                OR = {
                    portrait_era1_armor_trigger = yes
                    portrait_era2_armor_trigger = yes
                }
            }
        }
    }

    ep3_byzantine_era1_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era1_war_nobility_clothes
                accessory = m_clothes_sec_ep3_byzantine_era1_war_nob_01
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = byzantine
                }
                has_ep3_dlc_trigger = yes
                portrait_era1_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = byzantine
                }
                has_ep3_dlc_trigger = yes
                OR = {
                    portrait_era1_armor_trigger = yes
                    portrait_era2_armor_trigger = yes
                }
            }
        }
    }

    ep3_byzantine_era2_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_war_nobility_clothes
                accessory = m_clothes_sec_ep3_byzantine_era2_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                }
                has_ep3_dlc_trigger = yes
                OR = {
                    portrait_era3_armor_trigger = yes
                    portrait_era4_armor_trigger = yes
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = byzantine
                    }
                }
                has_ep3_dlc_trigger = yes
                OR = {
                    portrait_era3_armor_trigger = yes
                    portrait_era4_armor_trigger = yes
                }
            }
        }
    }

    ep3_byzantine_era2_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep3_byzantine_era2_war_nobility_clothes
                accessory = m_clothes_sec_ep3_byzantine_era2_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = byzantine
                }
                has_ep3_dlc_trigger = yes
                OR = {
                    portrait_era3_armor_trigger = yes
                    portrait_era4_armor_trigger = yes
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = byzantine
                }
                has_ep3_dlc_trigger = yes
                OR = {
                    portrait_era3_armor_trigger = yes
                    portrait_era4_armor_trigger = yes
                }
            }
        }
    }

    ## Indian ##

    indian_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_war_nobility_clothes
                accessory = m_clothes_sec_indian_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = indian
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = indian
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = indian
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = indian
                    }
                }
            }
        }
    }

    indian_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_war_nobility_clothes
                accessory = m_clothes_sec_indian_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = indian
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = indian
                }
            }
        }
    }

    indian_war_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = indian_war_nobility_clothes
                accessory = m_clothes_sec_indian_war_nob_01_roy
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_royalty_armor_trigger = {
                    CULTURE_INPUT = indian
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_royalty_armor_in_army_trigger = {
                    CULTURE_INPUT = indian
                }
            }
        }
    }

    ep2_indian_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_indian_war_nobility_clothes
                accessory = m_clothes_sec_ep2_indian_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = indian
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = indian
                    }
                }
                has_ep2_dlc_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = indian
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = indian
                    }
                }
                has_ep2_dlc_trigger = yes
            }
        }
    }

    ep2_indian_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_indian_war_nobility_clothes
                accessory = m_clothes_sec_ep2_indian_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = indian
                }
                has_ep2_dlc_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = indian
                }
                has_ep2_dlc_trigger = yes
            }
        }
    }

    ## DDE Abbasid ##

    dde_abbasid_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_war_nobility_clothes
                accessory = m_clothes_sec_dde_abbasid_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = dde_abbasid
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = dde_abbasid
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = dde_abbasid
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = dde_abbasid
                    }
                }
            }
        }
    }

    dde_abbasid_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_war_nobility_clothes
                accessory = m_clothes_sec_dde_abbasid_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = dde_abbasid
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = dde_abbasid
                }
            }
        }
    }

    dde_abbasid_war_royalty = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = dde_abbasid_war_nobility_clothes
                accessory = m_clothes_sec_dde_abbasid_war_nob_01_roy
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_royalty_armor_trigger = {
                    CULTURE_INPUT = dde_abbasid
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_royalty_armor_in_army_trigger = {
                    CULTURE_INPUT = dde_abbasid
                }
            }
        }
    }

    ## MENA ##

    mena_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_war_nobility_clothes
                accessory = m_clothes_sec_mena_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = mena
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = mena
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = mena
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = mena
                    }
                }
            }
        }
    }

    mena_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mena_war_nobility_clothes
                accessory = m_clothes_sec_mena_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = mena
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = mena
                }
            }
        }
    }

    ep2_mena_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_mena_war_nobility_clothes
                accessory = m_clothes_sec_ep2_mena_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = mena
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = mena
                    }
                }
                has_ep2_dlc_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = mena
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = mena
                    }
                }
                has_ep2_dlc_trigger = yes
            }
        }
    }

    ep2_mena_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_mena_war_nobility_clothes
                accessory = m_clothes_sec_ep2_mena_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = mena
                }
                has_ep2_dlc_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = mena
                }
                has_ep2_dlc_trigger = yes
            }
        }
    }

    ## Steppe ##

    steppe_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = steppe_war_nobility_clothes
                accessory = m_clothes_sec_steppe_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = steppe
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = steppe
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = steppe
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = steppe
                    }
                }
            }
        }
    }

    ep2_steppe_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_steppe_war_nobility_clothes
                accessory = m_clothes_sec_ep2_steppe_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = steppe
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = steppe
                    }
                }
                has_ep2_dlc_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = steppe
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = steppe
                    }
                }
                has_ep2_dlc_trigger = yes
            }
        }
    }

    mpo_mongol_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mpo_mongol_war_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = steppe
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = steppe
                    }
                }
                has_mpo_dlc_trigger = yes
            }
            modifier = {
                add = 61        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = steppe
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = steppe
                    }
                }
                has_mpo_dlc_trigger = yes
            }
            modifier = { # Not used by Turkic peoples of the Western steppes
                factor = 0
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = fp3_turkic
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = fp3_turkic
                    }
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = fp3_turkic
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = fp3_turkic
                    }
                }
                OR = {
                    has_fp3_dlc_trigger = yes
                    has_mpo_dlc_trigger = yes
                }
            }
        }
    }

    steppe_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = steppe_war_nobility_clothes
                accessory = m_clothes_sec_steppe_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = steppe
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = steppe
                }
            }
        }
    }

    ep2_steppe_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ep2_steppe_war_nobility_clothes
                accessory = m_clothes_sec_ep2_steppe_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = steppe
                }
                has_ep2_dlc_trigger = yes
            }
            modifier = {
                add = 41        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = steppe
                }
                has_ep2_dlc_trigger = yes
            }
        }
    }

    mpo_mongol_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = mpo_mongol_war_nobility_clothes
                range = { 0 1 } 
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = steppe
                }
                has_mpo_dlc_trigger = yes
            }
            modifier = {
                add = 81        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = steppe
                }
                has_mpo_dlc_trigger = yes
            }
            modifier = { # Not used by Turkic peoples of the Western steppes
                factor = 0
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = fp3_turkic
                }
                OR = {
                    has_fp3_dlc_trigger = yes
                    has_mpo_dlc_trigger = yes
                }
            }
        }
    }

    ## Northern ##

    northern_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_war_nobility_clothes
                accessory = m_clothes_sec_northern_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = northern
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = northern
                    }
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = sami
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = sami
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = northern
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = northern
                    }
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = sami
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = sami
                    }
                }
            }
        }
    }

    northern_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = northern_war_nobility_clothes
                accessory = m_clothes_sec_northern_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                OR = {
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = northern
                }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = sami
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = northern
                }
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = sami
                    }
                }
            }
        }
    }

    ## FP2 Fate of Iberia ##

    fp2_iberian_christian_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_christian_war_nobility_clothes
                accessory = m_clothes_sec_fp2_iberian_christian_war_nob_01_lo
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 60 # slightly stronger than western war
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = fp2_iberian_christian
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = fp2_iberian_christian
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = fp2_iberian_christian
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = fp2_iberian_christian
                    }
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes
                NOR = {
                    portrait_era2_trigger = yes
                    portrait_era3_trigger = yes
                }
            }
        }
    }

    fp2_iberian_christian_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_christian_war_nobility_clothes
                accessory = m_clothes_sec_fp2_iberian_christian_war_nob_01_hi
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 60 # slightly stronger than western war
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = fp2_iberian_christian
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = fp2_iberian_christian
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes
                NOR = {
                    portrait_era2_trigger = yes
                    portrait_era3_trigger = yes
                }
            }
        }
    }

    fp2_iberian_muslim_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_muslim_war_nobility_clothes
                accessory = m_clothes_sec_fp2_iberian_muslim_war_nob_01_lo
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 60 # slightly stronger than western war
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = fp2_iberian_muslim
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = fp2_iberian_muslim
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = fp2_iberian_muslim
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = fp2_iberian_muslim
                    }
                }
            }
        }
    }

    fp2_iberian_muslim_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp2_muslim_war_nobility_clothes
                accessory = m_clothes_sec_fp2_iberian_muslim_war_nob_01_hi
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 60 # slightly stronger than western war
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = fp2_iberian_muslim
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = fp2_iberian_muslim
                }
            }
        }
    }

    ## FP1 Norse ##

    fp1_norse_war = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp1_war_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 60 # slightly stronger than northern war
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = fp1_norse
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = fp1_norse
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = fp1_norse
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = fp1_norse
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = fp1_norse
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = fp1_norse
                    }
                }
            }
        }
    }

    ## Sub-Saharan Africans ##

    sub_saharan_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sub_saharan_war_nobility_clothes
                accessory = m_clothes_sec_mena_war_nob_01_lo
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60       # slightly stronger than western war
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = african
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = african
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = african
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = african
                    }
                }
            }
        }
    }

    sub_saharan_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = sub_saharan_war_nobility_clothes
                accessory = m_clothes_sec_mena_war_nob_01_hi
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 60       # slightly stronger than western war
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = african
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = african
                }
            }
        }
    }

	## AFR ##

	afr_berber_war = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = afr_war_nobility_clothes
				range = { 0 1 } # For the randomness to work correctly
			}
		}
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 100 # slightly stronger than mena war
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = { 
                        CULTURE_INPUT = afr_berber
                    }
                    portrait_low_nobles_armor_trigger = { 
                        CULTURE_INPUT = afr_berber
                    }
					portrait_high_nobles_armor_trigger = {
						CULTURE_INPUT = afr_berber
					}
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = { 
                        CULTURE_INPUT = afr_berber
                    }
                    portrait_low_nobles_armor_in_army_trigger = { 
                        CULTURE_INPUT = afr_berber
                    }
					portrait_high_nobles_armor_in_army_trigger = {
						CULTURE_INPUT = afr_berber
					}
                }
            }
        }
	}

	## POL ##

	pol_west_slavic_war = {
		dna_modifiers = {
			accessory = {
				mode = add
				gene = clothes
				template = pol_war_nobility_clothes
				range = { 0 1 } # For the randomness to work correctly
			}
		}
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 101
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = west_slavic
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = west_slavic
                    }
					portrait_high_nobles_armor_trigger = {
						CULTURE_INPUT = west_slavic
					}
                }
            }
            modifier = {
                add = 101        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
				OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = west_slavic
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = west_slavic
                    }
					portrait_high_nobles_armor_in_army_trigger = {
						CULTURE_INPUT = west_slavic
					}
                }
            }
            modifier = {
                factor = 0       # Should NOT show up if EP2 is active and we're not in the right era
                has_ep2_dlc_trigger = yes   
                NOR = {
					portrait_era1_armor_trigger = yes
					portrait_era2_armor_trigger = yes
				}
            }
        }
	}

    ## CCP4 khanty ##

    ccp4_khanty_war_com = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp4_khanty_war_nobility_clothes
                range = { 0 0.3 } # For the randomness to work correctly
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 101
                portrait_commoner_armor_trigger = {
                    CULTURE_INPUT = ugro_permian
                }
            }
            modifier = {
                add = 101        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_commoner_armor_in_army_trigger = {
                    CULTURE_INPUT = ugro_permian
                }
            }
        }
    }

    ccp4_khanty_war_low_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp4_khanty_war_nobility_clothes
                range = { 0.1 0.6 } # For the randomness to work correctly
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 101
                portrait_low_nobles_armor_trigger = {
                    CULTURE_INPUT = ugro_permian
                }
            }
            modifier = {
                add = 101        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_low_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = ugro_permian
                }
            }
        }
    }

    ccp4_khanty_war_high_nobles = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = ccp4_khanty_war_nobility_clothes
                range = { 0.7 1.0 } # For the randomness to work correctly
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 101
                portrait_high_nobles_armor_trigger = {
                    CULTURE_INPUT = ugro_permian
                }
            }
            modifier = {
                add = 101        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                portrait_high_nobles_armor_in_army_trigger = {
                    CULTURE_INPUT = ugro_permian
                }
            }
        }
    }
    

    ## FP3 Iranian ##

    fp3_iranian_war = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = fp3_iranian_war_nobility_clothes
                range = { 0 1 } # For the randomness to work correctly
            }
        }
        weight = {
            base = 0
            modifier = {
                add = 100 # slightly stronger than mena war
				portrait_armor_generic_trigger = yes
                OR = {
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = fp3_iranian
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = fp3_iranian
                    }
                }
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = fp3_iranian
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = fp3_iranian
                    }
                }
            }
        }
    }


    # Shogunate

    japanese_war_era1_high = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = japanese_war_nobility_clothes
                value = 0 # For O-Yoroi
            }
            accessory = {
                mode = add
                gene = shogunate_special_belt_accessory
                template = katana_01
                value = 1
            }           
            morph = {
                mode = replace
                gene = gene_bs_body_shape
                template = body_shape_average
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = japanese
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = japanese
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = japanese
                    }
                }
                shogunate_armor_era1_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = japanese
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = japanese
                    }
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = japanese
                    }
                }
                shogunate_armor_era1_trigger = yes
            }
        }
    }
    japanese_war_era2_high = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = japanese_war_nobility_clothes
                range = { 0.25 1.0 } # Random
            }
            accessory = {
                mode = add
                gene = shogunate_special_belt_accessory
                template = katana_01
                range = { 1 1 }
            }           
            morph = {
                mode = replace
                gene = gene_bs_body_shape
                template = body_shape_average
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = japanese
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = japanese
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = japanese
                    }
                }
                shogunate_armor_era2_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = japanese
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = japanese
                    }
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = japanese
                    }
                }
                shogunate_armor_era2_trigger = yes
            }
        }
    }
    japanese_war_era3_high = {
        dna_modifiers = {
            accessory = {
                mode = add
                gene = clothes
                template = japanese_war_nobility_clothes
                value = 1 # For Gusoku
            }
            accessory = {
                mode = add
                gene = shogunate_special_belt_accessory
                template = katana_01
                value = 1
            }           
            morph = {
                mode = replace
                gene = gene_bs_body_shape
                template = body_shape_average
            }
        }
        outfit_tags = { military_outfit }
        weight = {
            base = 0
            modifier = {
                add = 50
                OR = {
                    portrait_commoner_armor_trigger = {
                        CULTURE_INPUT = japanese
                    }
                    portrait_low_nobles_armor_trigger = {
                        CULTURE_INPUT = japanese
                    }
                    portrait_high_nobles_armor_trigger = {
                        CULTURE_INPUT = japanese
                    }
                }
                shogunate_armor_era3_trigger = yes
            }
            modifier = {
                add = 21        # So priests who are actively serving in a raised army as a commander or knight wear armor instead of priest robes
                OR = {
                    portrait_commoner_armor_in_army_trigger = {
                        CULTURE_INPUT = japanese
                    }
                    portrait_low_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = japanese
                    }
                    portrait_high_nobles_armor_in_army_trigger = {
                        CULTURE_INPUT = japanese
                    }
                }
                shogunate_armor_era3_trigger = yes
            }
        }
    }
}

